﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebTraderLiteCL;

namespace WebTraderLite.AdminContent
{
    public partial class AdminBrokerFee : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DBTransactions db = new DBTransactions();
            float fee = db.getBrokerFee();
            LblFee.Text = fee.ToString();
        }
        protected void btnChangeFee_Click(object sender, EventArgs e)
        {
            DBTransactions db = new DBTransactions();
            float newFee = (float)Convert.ToDouble(changeFee.Text);
            db.setBrokerFee(newFee);
            Response.Redirect("~/AdminContent/AdminBrokerFee.aspx");
        }//end btnChangeInformation_Click
    }
}